package com.hao.crm.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hao.crm.service.IDepartmentService;

@Controller
public class DepartmentController {
	@Autowired
	IDepartmentService departmentService;
	@RequestMapping("/department_list")
	@ResponseBody
	public List queryForEmp() {
		List result = null;
		result = departmentService.selectAll();
		return result;
	}

}
